package doubleLinkedNode;

public class DLNodeTest {
    public static void main(String[] args) {
        DoubleLinkedNodeImpl head=new DoubleLinkedNodeImpl(1,"li");
        int i=0;
        while (i++ <5){
            head.addNode( new DoubleLinkedNodeImpl(i+1,"li"+i) );
        }

        head.addNode( new DoubleLinkedNodeImpl(16,"uuuu") );
        head.addInOrder(new DoubleLinkedNodeImpl(20,"uuuu"));
        head.addInOrder(new DoubleLinkedNodeImpl(-20,"uuuu"));
        head.addInOrder(new DoubleLinkedNodeImpl(25,"uuuu"));
        head.addInOrder(new DoubleLinkedNodeImpl(100,"uuuu"));
        head.addInOrder(new DoubleLinkedNodeImpl(-8,"uuuu"));
        head.deleteNode(100);
        head.printAll();
        System.out.println("链表长度："+head.getLength());

    }
}
